package com.ruoyi.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分规则对象 t_points_rules
 * 
 * @author ruoyi
 * @date 2025-01-13
 */
public class TPointsRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 任务类型（1-每日一练；2-周考；3-月考；4-季考） */
    @Excel(name = "任务类型", readConverterExp = "1=-每日一练；2-周考；3-月考；4-季考")
    private Integer taskType;

    /** 最低分数 */
    @Excel(name = "最低分数")
    private Double minScore;

    /** 最高分数 */
    @Excel(name = "最高分数")
    private Double maxScore;

    /** 积分值 */
    @Excel(name = "积分值")
    private Double points;

    /** 是否删除，1表示已删除 */
    @Excel(name = "是否删除，1表示已删除")
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTaskType(Integer taskType) 
    {
        this.taskType = taskType;
    }

    public Integer getTaskType() 
    {
        return taskType;
    }
    public void setMinScore(Double minScore) 
    {
        this.minScore = minScore;
    }

    public Double getMinScore() 
    {
        return minScore;
    }
    public void setMaxScore(Double maxScore) 
    {
        this.maxScore = maxScore;
    }

    public Double getMaxScore() 
    {
        return maxScore;
    }
    public void setPoints(Double points) 
    {
        this.points = points;
    }

    public Double getPoints() 
    {
        return points;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskType", getTaskType())
            .append("minScore", getMinScore())
            .append("maxScore", getMaxScore())
            .append("points", getPoints())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
